#ifndef __STDARG_H_f57dbdf4eeb6488ba57a26c18f8494d3__
#define __STDARG_H_f57dbdf4eeb6488ba57a26c18f8494d3__

#include <va_list.h>

#ifdef __cplusplus
extern "C"
{
#endif

#define VA_SIZE(TYPE) \
	((sizeof(TYPE) + sizeof(int) - 1) \
	&~(sizeof(int) - 1))

#define va_start(AP,LASTARG) \
	(AP = (va_list)&LASTARG + VA_SIZE(LASTARG))

#define va_arg(AP,TYPE) \
	(AP += VA_SIZE(TYPE), *((TYPE *)(AP - VA_SIZE(TYPE))))

#define va_end(AP)

#ifdef __cplusplus
}
#endif

#endif